import Vue from 'vue'
import Vuex from 'vuex'

Vue.use(Vuex)
import {user} from './modules/user.js'
export default new Vuex.Store({
  modules: {
    user
  },
  getters: {
    username(state){
      return state.user.username
    },
    token(state){
      return state.user.token
    }
  }
})
